package com.gdsdxy.bookshop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@ApiModel("查询订单及项目分页对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OrderDto {

    @ApiModelProperty("订单id")
    private Integer orderid;

    @ApiModelProperty("用户id")
    private Integer userid;

    @ApiModelProperty("书籍id")
    private Integer bookid;

    @ApiModelProperty("订单总额")
    private Double amount=0D;

    @ApiModelProperty("订单状态")
    private Integer state;


    @ApiModelProperty("订单项目")
    private List<OItemDto> oitemList;

}
